package cn.com.pxto.service;

import java.util.HashMap;
import java.util.List;

import cn.com.pxto.commons.pagesupport.PageInfo;
import cn.com.pxto.model.Lesson;
import cn.com.pxto.model.LessonType;
import cn.com.pxto.model.School;

public interface SchoolManager {
	public void createSchool(School school);
	
	public void createLessonType(LessonType lessonType);
	
	public void createLesson(Lesson lesson);
	
	public void updateSchool(School school);
	
	public void updateLessonType(LessonType lessonType);
	
	public void updateLesson(Lesson lesson);
	
	public void deleteSchool(int id);
	
	public void deleteLessonType(int id);
	
	public void deleteLesson(int id);
	
	public List<School> listSchool(PageInfo pageInfo);
	
	public List<LessonType> listLessonType(PageInfo pageInfo);
	
	public List<Lesson> listLesson(PageInfo pageInfo);
	
	public List<School> listAllSchool();
	
	public List<LessonType> listAllLessonType();
	
	public List<Lesson> listALLLesson();
	
	public School getSchoolByName(String name);
	
	public LessonType getLessonTypeByName(String name);
	
	public Lesson getLessonByName(String name);
	
	public School getSchool(int id);
	
	public LessonType getLessonType(int id);
	
	public Lesson getLesson(int id);
	
	public HashMap getSchoolLessonType();
	
	public List<School> getSchoolByLessonsType(String typeId);
}
